package com.kd.oss.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class DateUtils {

	public static String getDateStringOf8(long date) {
		// if need more fine grain, eg: yyyy_MM_dd_HH_mm
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_dd");
		Calendar now = Calendar.getInstance();
		now.setTimeInMillis(date);
		return sdf.format(now.getTime());
	}
	
}
